﻿
namespace TotalSystems.Web.Services.Store
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Data;
    using System.Linq;
    using System.ServiceModel.DomainServices.EntityFramework;
    using System.ServiceModel.DomainServices.Hosting;
    using System.ServiceModel.DomainServices.Server;
    using TotalSystems.Business;
    using TotalSystems.DataAccess;
    using TotalSystems.Business.Store;


    // Implements application logic using the TSContext context.
    // TODO: Add your application logic to these methods or in additional methods.
    // TODO: Wire up authentication (Windows/ASP.NET Forms) and uncomment the following to disable anonymous access
    // Also consider adding roles to restrict access as appropriate.
    // [RequiresAuthentication]
    [EnableClientAccess()]
    public class UnitStuffService : LinqToEntitiesDomainService<TSContext>
    {
        UnitStuffRepository _context = new UnitStuffRepository();

        #region Select
        public IEnumerable<STR_UnitStuff> GetUnitStuff()
        {
            return _context.GetUnitStuff().ToArray();
        }

        #endregion

        #region Insert

        public void InsertUnitStuff(STR_UnitStuff sTR_UnitStuff)
        {
            _context.InsertUnitStuff(sTR_UnitStuff);
        }

        #endregion

        #region Update

        public void UpdateUnitStuff(STR_UnitStuff sTR_UnitStuff)
        {
            _context.UpdateUnitStuff(sTR_UnitStuff);
        }

        #endregion
    }
}


